package com.vhall.component.entity.pendant.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author shimingming
 * @since 2023/5/6 14:41
 */
@Data
public class BindingOperationReqVO {

    @NotBlank(message = "room_id 不能为空！")
    @ParamName("room_id")
    @JsonProperty("room_id")
    private String roomId;

    /**
     * 挂件id
     */
    @ParamName("ids")
    @JsonProperty("ids")
    private List<Integer> ids;

    /**
     * 0 绑定，1 解绑
     */
    @NotNull(message = "操作类型不能为空！")
    @Range(min = 0, max = 1, message = "type只能是0,1")
    @ParamName("operation_type")
    @JsonProperty("operation_type")
    private Integer operationType;
}
